﻿using System.ServiceProcess;

namespace BSDS.Service
{
    partial class BsdsService : ServiceBase
    {
        private BsdsServiceApplication application;

        public BsdsService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            application = new BsdsServiceApplication();

            application.Start();
        }

        protected override void OnStop()
        {
            if(application != null)
            {
                application.Stop();
            }
        }
      
    }
}
